package com.carkeeper.serve;

import com.carkeeper.interceptor.FeignInterceptor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;
import tk.mybatis.spring.annotation.MapperScan;
@EnableFeignClients(basePackages = {"com.carkeeper.billpay.feign"})
@SpringBootApplication
@EnableEurekaClient
@MapperScan(basePackages = {"com.carkeeper.serve.dao"})
public class LineChartApplication {
    public static void main(String[] args) {
        SpringApplication.run(LineChartApplication.class,args);
    }
    @Bean
    public FeignInterceptor feignInterceptor(){
        return new FeignInterceptor();
    }
}
